﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using MetroFramework.Forms;
using BLL;

namespace MyLirarySystem
{
    /// <summary>
    /// 借阅记录统计窗体
    /// </summary>
    public partial class FrmBorrowStatistics : MetroForm
    {
        ForBorrowStatistics fs = new ForBorrowStatistics();
        public FrmBorrowStatistics()
        {
            InitializeComponent();
            ////this.skinEngine1 = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this)));
            //this.skinEngine1.SkinFile = Application.StartupPath + "//DiamondBlue.ssk";
        }

        /// <summary>
        /// 窗体加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmBorrowStatistics_Load(object sender, EventArgs e)
        {
            //借阅总人数
            this.lblCountSum.Text = fs.ShowBorrowReader();
            //借阅图书总册
            this.lblSumBooks.Text = fs.BookSum();
            //再借人数汇总
            this.lblSumBooks.Text = fs.BookSum();
            //逾期人数
            this.lblShu.Text = fs.OverdueSum();
        }

        private void btnBorOut_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
